CI: Infer PR context for format workflow - #11628
Conversation
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
📌 Code Review Assignment🏷️ Tag: workflowReviewers: @Rbb666 @kurisaW @supperthomas Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2026-08-12 11:41 CST)
📝 Review Instructions
|
|
format commit不建议直接和用户commit合并,会对代码审查人员带来额外的压力,建议考虑:如果PR中存在多笔format commit,看看有没有什么机制只会生成最终的一条format commit |
f4656fe to
a257f24
Compare
已修改回原本的追加一条commit |
a257f24 to
59a61ce
Compare
拉取/合并请求描述:(PR description)
为什么提交这份PR (why to submit this PR)
当前格式化工作流要求贡献者同时填写 PR 分支和 PR 编号。GitHub 无法通过工作流链接自动填充
workflow_dispatch输入,贡献者需要重复查找并填写 PR 编号,操作容易出错。此外,自动格式化提交需要正确关联到 PR 作者,否则 GitHub 只显示同名字符串,无法识别为贡献者本人,也可能影响 CLA 检查。
你的解决方案是什么 (what is your solution)
branch输入,贡献者只需填写 PR 分支。style: format code with clang-format [skip ci]提交,并通过普通 push 更新 PR 分支。Use workflow from保持默认分支,并在branch输入框填写 PR 分支。请提供验证的bsp和config (provide the config and bsp)
BSP: 不涉及
.config: 不涉及
action:
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up